package cn.sitedev;

/**
 * Java课程打折
 */
public class JavaDiscountCourse extends JavaCourse {
    public JavaDiscountCourse(Integer id, String name, double price) {
        super(id, name, price);
    }

    /**
     * 折扣价
     *
     * @return
     */
    public double getDiscountPrice() {
        return super.getPrice() * 0.6;
    }
}
